﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using STF.OrangeDog.Dtos;

namespace STF.OrangeDog.IService
{
    public interface ITextCategoryBll
    {
        Task<int> AddCategoryAsync(string Title, int ParentId);
        Task<int> EditCategoryAsync(int Id, string Title, int ParentId);
        Task<int> DeleteCategoryAsync(int Id);
        Task<IEnumerable<TextCategoryDtos>> GetAll(int DeleteId = 1);
        Task<IEnumerable<TextCategoryDtos>> GetDataByTitle(string Title, int DeleteId = 1);
        Task<TextCategoryDtos> GetDataById(int Id);
    }
}
